package com.itany.study.service;

import com.itany.study.entity.User;
import com.itany.study.exception.LoginException;
import com.itany.study.exception.UsernameExistsException;

import java.util.List;


/**
 * Author：汤小洋
 * Date：2022-11-28 17:16
 * Description：<描述>
 */
public interface UserService {

    public User login(String username,String password) throws LoginException;

    public void register(User user) throws UsernameExistsException;

    void modifyPwd(Integer id, String newpassword);

    public List<User> findAll();

}
